package com.kgc.novel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("book_link_tag")
public class BookLinkTag implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 书和标签关联主键
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 标签Id
     */
    @TableField("tag_id")
    private String tagId;

    /**
     * 书名Id
     */
    @TableField("book_id")
    private String bookId;
}
